<?php
	include_once('db/config.php');
	
	function getAllCountry()
	{
		try
		{	
			
			connectDb("everythingdb");
			
			global $dbLink;
			
			$resultPointer = mysqli_query($dbLink,"call sp_getAllCountry()");
			if($resultPointer)
			{	
				$resultTable = array();
				while($resultRow = mysqli_fetch_array($resultPointer))
				{
					array_push($resultTable, $resultRow);
				}
				return $resultTable;
			}
			else
			{
				return false;
			}
		}
		catch(Exception $ex)
		{
			throw new Exception($ex->getMessage());
		}
	}
?>